/* 
 * File:   Sum.h
 * Author: Gab'z
 *
 * Created on 4 juin 2012, 23:20
 */

#ifndef SUM_H
#define	SUM_H

#include "NaryOperator.h"

namespace calculator {

    class Sum : public NaryOperator {
        friend class CommandMap;

    public:
        virtual Sum* clone() const;

        const Number* apply(const Stack* stack) const throw (ArithmeticException);
        virtual ~Sum();

    private:
        Sum(const std::string name);
        Sum(const Sum& orig);
    };
}

#endif	/* SUM_H */

